/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.framework.base.dao;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * The Class BaseUpdatableEntity.
 *
 * @author Xi Wei
 */
@MappedSuperclass
public class BaseUpdatableEntity extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7441520919307018689L;
	@JsonIgnore
	@Column(updatable=false)
	private Long createUserId;
	@JsonIgnore
	@Column(updatable=false)
	private Timestamp createDate;
	@JsonIgnore
	private Long updateUserId;
	@JsonIgnore
	private Timestamp updateDate;
	
	/**
	 * Gets the update user id.
	 *
	 * @return the update user id
	 */
	public Long getUpdateUserId() {
		return updateUserId;
	}
	
	/**
	 * Sets the update user id.
	 *
	 * @param updateUserId the new update user id
	 */
	public void setUpdateUserId(Long updateUserId) {
		this.updateUserId = updateUserId;
	}
	
	/**
	 * Gets the update date.
	 *
	 * @return the update date
	 */
	public Timestamp getUpdateDate() {
		return updateDate;
	}
	
	/**
	 * Sets the update date.
	 *
	 * @param updateDate the new update date
	 */
	public void setUpdateDate(Timestamp updateDate) {
		this.updateDate = updateDate;
	}
	
	/**
	 * Gets the creates the user id.
	 *
	 * @return the creates the user id
	 */
	public Long getCreateUserId() {
		return createUserId;
	}
	
	/**
	 * Sets the creates the user id.
	 *
	 * @param createUserId the new creates the user id
	 */
	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}
	
	/**
	 * Gets the creates the date.
	 *
	 * @return the creates the date
	 */
	public Timestamp getCreateDate() {
		return createDate;
	}
	
	/**
	 * Sets the creates the date.
	 *
	 * @param createDate the new creates the date
	 */
	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}
}
